import { computed } from 'vue'

const menuBtn = alert ? {bottom: 0, height: 44, top: 0} : uni.getMenuButtonBoundingClientRect()
const {
	bottom,
	height,
	top
} = menuBtn
const heightBar = computed(() => height + bottom - 7)

let safeArea = uni.getSystemInfoSync().safeArea;
let screenHeight = uni.getSystemInfoSync().screenHeight;
let safeAreaBottom = computed(() => screenHeight - safeArea.bottom);

export {
	heightBar,
	bottom,
	height,
	top,
	safeAreaBottom
}